حل ارور Exception in thread "main" java.util.zip.ZipException: zip END header not found در زمان flutter build apk

آخرین بروز رسانی: 1400/10/27

راه اول:

1.پروژه فلاتر رو تو یه ادیتور مثل  vs code اجرا کنید

2.وارد پوشه  android -> gradle -> wrapper -> gradle-wrapper.properties بشیدfind gradle wrapper properties ب

3. You will find "gradle-6.7.1.all.zip" inside gradle-wrapper folder

4. Go to this path: C:\Users\your-user find .gradle folder in windows

5. Then go to the wrapper->dists and find "gradle-6.7.1.all" folder find gradle file in android

5. Delete this folder.

6. Then come to VSCode and open Terminal.

7. Please make sure that you have stable internet connection then type this command in terminal

8. flutter run

 

راه دوم :

Android Studio رو اجرا کنید 
یه پروژه flutter رو ایجاد کنید
 Tools > flutter >Flutter for editing in android studio


صبر کنید تا flutter doctor مشکل و حل کنه. (احتمالن  تو پنحره sync باید روی Delete file and sync project کلیک کنید شروع میکنه به دانلود gradle)

💡باید از vpn استفاده کنید

نظر دهید

آدرس ایمیل شما منتشر نخواهد شد. فیلدهای الزامی علامت گذاری شده اند *